<?php
/**
 * Created by PhpStorm.
 * User: yellow
 * Date: 2019/7/25
 * Time: 16:43
 */

namespace app\common\model;


use think\Model;

class DeliveryOrderComment extends Model
{

    public function imgs(){
        return $this->hasMany('DeliveryOrderCommentImg', 'comment_id', 'id');
    }

    public function user()
    {
        return $this->hasOne('User', 'id', 'user_id')->bind([
            'nick_name',
            'head_pic'
        ]);
    }

}